﻿@model IEnumerable<Common.Views.FaultsView>
           
@if (Model.Count() > 0)
{
    <br /> <div style="color: Black"><b>Log Entries:</b></div> <br />
    <table>
        <tr>
              <th>Fault ID</th>  
              <th>Log Date</th>
              <th>Fault Details</th>
              <th>Fault Status</th>
        </tr>
    @foreach (var item in Model)
    {
        <tr>
            <td>
                @Html.DisplayFor(modelItem => item.FaultID)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.FaultDate)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.FaultDetails)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.FaultStatus)
            </td>
        </tr>
    }
    </table>
}
else
{
    <br /> <div style="color: Red"><b>No log entries found</b></div>
}